#include <stdio.h>
int main() 
{
    int n = 0,i = 0;
    float a[5] ={ 0 },max = 0,min = 100,sum = 0,avg = 0;
    scanf("%d",&n);
    for(i = 0;i < n;i++)
    {
        scanf("%f",&a[i]);
        sum += a[i];
        if(a[i] > max) max = a[i];
        if(a[i] < min) min = a[i];
    }
     avg = sum/n;
    printf("%.2f %.2f %.2f\n",max,min,avg);
    return 0;
}
